package com.mall.common.constant;

/**
 * @author: 谢君臣
 * @Date: 2022/7/26-15:19
 * @version: 1.0
 * @function:
 */
public class WareConstant {
    public enum PurchaseStatus{
        CREATE(0,"新建"),
        ASSIGNED(1,"已分配"),
        RECEIVE(2,"已领取"),
        FINISH(3,"已完成"),
        ERROR(4,"有异常");

        private int code;
        private String desc;

        PurchaseStatus(int code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public int getCode() {
            return code;
        }

        public String getDesc() {
            return desc;
        }
    }

    public enum  PurchaseDetailsStatus{
        CREATE(0,"新建"),
        ASSIGNED(1,"已分配"),
        BUYING(2,"正在采购"),
        FINISH(3,"已完成"),
        ERROR(4,"采购失败");

        private int code;
        private String desc;

        PurchaseDetailsStatus(int code, String desc) {
            this.code = code;
            this.desc = desc;
        }

        public int getCode() {
            return code;
        }

        public String getDesc() {
            return desc;
        }
    }
}
